package com.china08.yxyapi.service.manage.tec.teaching.homework;

import java.text.ParseException;
import java.util.Date;
import java.util.List;

import com.china08.yxyapi.api.manage.tec.teaching.homework.worklist.WorklistFindV1Controller.ReqModel;
import com.china08.yxyapi.api.manage.tec.teaching.homework.worklist.WorklistFindV1Controller.RespModel;
import com.china08.yxyapi.entity.mg.homework.HomeworkTaskClass;

/**
 * 作业列表Service
 */
public interface HomeworkListV1Service {

    /**
     * 获取 querytime,isDateDecrement 后第一个有任务的时间
     * 
     * @param {@link
     *            ReqModel}
     * 
     * @throws ParseException
     */
    Date getPublishDate(ReqModel reqModel) throws ParseException;

    /**
     * 获取某天教师发布任务列表
     * 
     * @param {@link
     *            ReqModel}
     * 
     * @throws ParseException
     */
    List<HomeworkTaskClass> findHomeworkTaskClass(ReqModel reqModel) throws ParseException;

    /**
     * 把 List<HomeworkTaskClass> 转化为 RespModel
     * 
     * @param List<HomeworkTaskClass>
     * 
     * @return
     */
    RespModel convertRespModel(List<HomeworkTaskClass> homeworkTaskClasss);

}
